Skip to content

[Amber] Fix: security(runner): reject direct AG-UI connections that bypass backend proxy - #756

Closed
github-actions[bot] wants to merge 2 commits into
mainfrom
amber/issue-754-security-runner-reject-direct-ag-ui-connections-th
Closed

github-actions[bot] wants to merge 2 commits into
mainfrom
amber/issue-754-security-runner-reject-direct-ag-ui-connections-th

Conversation

@github-actions

@github-actions github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown
Contributor

Automated Fix by Amber Agent

This PR addresses issue #754 using the Amber background agent.

Changes Summary

  • Action Type: auto-fix
  • Commit: 2869df3
  • Triggered by: Issue label/command

Pre-merge Checklist

  • All linters pass
  • All tests pass
  • Changes follow project conventions (CLAUDE.md)
  • No scope creep beyond issue description

Reviewer Notes

This PR was automatically generated. Please review:

  1. Code quality and adherence to standards
  2. Test coverage for changes
  3. No unintended side effects

🤖 Generated with Amber Background Agent

Closes #754

… proxy

Adds a shared proxy secret (RUNNER_PROXY_SECRET) that the backend sends as
Authorization: Bearer when forwarding requests to runner pods. The runner
validates this header on all write endpoints, returning 403 for requests
that lack a valid token. Middleware is a no-op when RUNNER_PROXY_SECRET is
unset (dev/test environments).

- operator: generates a static proxy-secret UUID in the runner token secret
  at session creation; injects RUNNER_PROXY_SECRET env var into runner pods
- backend: reads proxy-secret from K8s secret and sets Authorization header
  on all proxied calls (run, interrupt, feedback, capabilities, mcp/status)
- runner: ProxyAuthMiddleware validates Authorization: Bearer on POST/PUT/
  PATCH/DELETE endpoints; /health is always public for liveness probes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jeremyeder

Copy link
Copy Markdown
Contributor

This needs discussion.

@jeremyeder jeremyeder closed this Mar 7, 2026
@jeremyeder jeremyeder reopened this Mar 7, 2026
@ambient-code ambient-code Bot modified the milestone: Merge Queue Mar 11, 2026
@jeremyeder

Copy link
Copy Markdown
Contributor

Closing as stale/superseded. Reopen if still needed.

@jeremyeder jeremyeder closed this Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

security(runner): reject direct AG-UI connections that bypass backend proxy

1 participant